Skip to main content

updateAnimation

Type

command

Summary

Updates an existing animation definition with new parameters.

Syntax

updateAnimation <pName>, <pKeyframes>, <pDuration>, <pEasing>

Description

Use this command to modify an existing animation. If an animation with the given name exists, it will be replaced with the new parameters. If no animation exists with that name, it will be created.

Parameters

NameTypeDescription

pName

Name of the animation to update

pKeyframes

New keyframe definitions

pDuration

New duration in seconds

pEasing

New easing function

Examples

local tKeyframes
put "left:0;top:0" into tKeyframes["0"]
put "left:100;top:100" into tKeyframes["100"]
updateAnimation "slide", tKeyframes, 2, "inOutQuad"

Compatibility and Support

OS

mac

windows

linux

ios

android

Platforms

desktop

mobile

web